gnomeos: Initial commit should be a compose
authorColin Walters <walters@verbum.org>
Fri, 6 Jan 2012 19:05:51 +0000 (14:05 -0500)
committerColin Walters <walters@verbum.org>
Fri, 6 Jan 2012 19:05:51 +0000 (14:05 -0500)
This is just cleaner - we know where the ref came from, rather
than making it a copy, and also we can use it with the new
--recompose bits to keep adding to it.

gnomeos/yocto/commit-yocto-build.sh

index 12a970292e5d576ee3db486fe36a6a92da5d13cc..4df39a4f79f8a92cf40fb191c7d645df38698b64 100755 (executable)
@@ -43,4 +43,4 @@ BUILD_TIME=$(date -r $BUILD_TAR)
 
 ostree --repo=${OSTREE_REPO} commit --skip-if-unchanged -s "Build from OSTree ${OSTREE_VER}" -b "${BASE}" --tree=tar=${BUILD_TAR}
 ostree --repo=${OSTREE_REPO} diff "${BASE}"^ "${BASE}" || true
-cp ${OSTREE_REPO}/refs/heads/${BASE} ${OSTREE_REPO}/refs/heads/${BUILDROOT}
+ostree --repo=${OSTREE_REPO} compose -s "Initial compose" -b ${BUILDROOT} ${BASE}